package com.pattern.bean;

/**
 * @Description
 * @Author Ping
 * @Date 2022/2/28 11:28
 **/
public class Membership {
    private MemberLevel level ;
    private int point ;

    public Membership() {
        this.level = MemberLevel.NORMAL ;
        this.point = 0 ;
    }

    public void update(int newValue) {
        this.point += newValue ;
        updateLevel() ;

    }
    private void updateLevel() {

    }

    public MemberLevel getLevel() {
        return level;
    }

}
